﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SmartSSO.Entities;

namespace SmartSSO.Services
{
    /// <summary>
    /// 用户Session接口
    /// </summary>
    public interface IUserSessionService
    {
        void Create(UserSessionEntity model);

        UserSessionEntity Get(string sessionKey);

        UserSessionEntity ExistsByValid(string appKey, string userName);

        void ExtendValid(string sessionkey);

        bool GetCache(string sessionKey);

        bool Remove(string SessionKey);
    }
}
